#!/bin/bash

   /home/redis-experiment/redis-4.0.2/src/redis-cli <<EOF
   CONFIG SET repl-backlog-size $1
   CONFIG SET hash-max-ziplist-value $2
   CONFIG SET hash-max-ziplist-entries $3
   CONFIG SET list-max-ziplist-size   $4
   CONFIG SET active-defrag-ignore-bytes  $5
   CONFIG SET active-defrag-threshold-lower   $6
   CONFIG SET repl-disable-tcp-nodelay  $7
   CONFIG SET hll-sparse-max-bytes   $8
   CONFIG SET hz $9
   exit
EOF
   /home/redis-experiment/redis-4.0.2/src/redis-benchmark -t set -n 10000  -q

